﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Spring.Context;
using System.Configuration;
using Spring.Context.Support;

namespace CsharpTrainer.Strategy.Person
{
    public class PersonAlgorithm
    {
        public static void Display()
        {
            //从config文件中取得程序集信息
            IApplicationContext context = ConfigurationManager.GetSection("spring/context") as IApplicationContext;

            Person person = (Person)context.GetObject("modernPerson"); 
            person.Work(); 
            Console.ReadLine();
        }
    }
}
